<?php

return array(
    "application" => array(
        "directory" => APPLICATION_PATH . '/application',
        "library"   => APPLICATION_PATH . '/application/library',
        "dispatcher" => array(
            "catchException" => 0,
        ),
        "modules" => 'Index,Novel',
        "log" => array(
            "status" => true,
            "path" => APPLICATION_PATH . "/logs/",
        ),
        'tmpdir' => APPLICATION_PATH. "/../tmp",
    ),
    
//    database.mysql.read.charset = "utf8"
//database.mysql.read.host = "localhost"
//database.mysql.read.dbname = "kwpiano"
//database.mysql.read.user = "kwpiano"
//database.mysql.read.password = "kwpiano"
//database.mysql.read.port = "3306"
//database.mysql.prefix = "piano_"
    
    
//    database.redis.write.host = "localhost"
//database.redis.write.port = "6379"
//database.redis.write.timeout = 0
//database.redis.write.auth = ""
    
    "database" => array(
        "mysql" => array(
            "read" => array(
                "charset" => "utf8",
                "host" => "59.110.0.207",
                "dbname" => "xd_app",
                "user" => "root",
                "password" => "root@2017",
                "port" => "3306",
            ),
            "write" => array(
                "charset" => "utf8",
                "host" => "59.110.0.207",
                "dbname" => "xd_app",
                "user" => "root",
                "password" => "root@2017",
                "port" => "3306",
            ),
            "prefix" => "xs_",
        ),
        "redis" => array(
            "write" => array(
                "host" => "59.110.0.207",
                "port" => "6379",
                "timeout" => 0,
                "auth" => "xiangdian@2017",
//                "password" => "xiangdian@2017",
                "dbIndex" => 7,
            ),
            "read" => array(
                "host" => "59.110.0.207",
                "port" => "6379",
                "timeout" => 0,
                "auth" => "xiangdian@2017",
//                "password" => "xiangdian@2017",
                "dbIndex" => 7,
            ),
            "prefix" => "XS_",
        ),
    ),
    
    
    "resource" => require APPLICATION_PATH . '/conf/dev/db.php',
//    'error' => require APPLICATION_PATH . '/conf/error.php',
//    'log'  => array(
//        'logpath' => '/usr/local/nginx/html/web_zhaixinwei/yaf_demo/logs/',
//        'type'     => 'file',
//        'size'     => 2*1024*1024*1024
//    )
);
